package com.atguigu.lease.web.admin.mapper;

import com.atguigu.lease.model.entity.GraphInfo;
import com.atguigu.lease.model.enums.ItemType;
import com.atguigu.lease.web.admin.vo.graph.GraphVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author liubo
 * @description 针对表【graph_info(图片信息表)】的数据库操作Mapper
 * @createDate 2023-07-24 15:48:00
 * @Entity com.atguigu.lease.model.GraphInfo
 */
@Mapper
public interface GraphInfoMapper extends BaseMapper<GraphInfo> {

    /**
     * 根据图片类型和所属对象ID查询图片的名称和地址
     *
     * @param itemType 图片类型
     * @param itemId   所属对象ID
     * @return 图片信息列表
     */
    List<GraphVo> selectListByItemTypeAndId(ItemType itemType, Long itemId);
}




